<html>
<body>
<div id="tabcontent">
<h1><?php echo $current->nama_jenisalat; ?></h1>
Property adalah informasi tambahan yang spesifik untuk setiap hardware. Property  yang ada dalam list akan digunakan pada saat hardware dimasukan ke store.
<br/><br/>
<b>Tambah Properti Baru</b>
<form action="<?php echo site_url("admin/cjenis_hardware/add_property/$id_jenishardware"); ?>" method="post">
<table>
<tr><td>Nama Property</td><td><input type='text' name="nama_property" id="nama_property" size="65" style='padding:5px;'></td></tr>
<tr><td>Keterangan</td><td><input type='text' name="keterangan" id="keterangan" size="65" style='padding:5px;'></td></tr>
<tr><td>&nbsp;</td><td><input id="btnSimpan" type='submit' value="Simpan" style='padding:5px;'></td></tr>
</table>
</form>

<div class='toolbar ui-widget-header ui-corner-all'>
Daftar property 
</div>
<table width='100%' class='view_all_data' cellpadding="3px" cellspacing="1px">
<tr class="view_all_data_header">
	<td width='30px' align='center'>NO.</td>
	<td align='center'>Nama property</td>
	<td align='center'>Keterangan</td>
	<td align='center'>Action</td>
	</tr>
<?php
     $c=1; 
	 if($properties){
	 foreach($properties as $row)
	 {
?>
<tr class="view_all_data_row">
	<td width='30px' align="center"><?php echo $c; ?></td>
	<td><?php echo $row->nama_property; ?></td>
	<td ><?php echo $row->keterangan; ?></td>
	<td align='center'>	
		<a href="<?php echo site_url("/admin/cjenis_hardware/edit_properties/".$id_jenishardware."/".$row->id_propertyname); ?>">Edit</a> | 
		<a href="<?php echo site_url("/admin/cjenis_hardware/hapus_properties/".$id_jenishardware."/".$row->id_propertyname); ?>">Hapus</a>
	</td>
	</tr>
<?php 
	$c++;
	}
	}
?>
</table>
</div>
		
<script language="javascript" type="text/javascript">
var browser_ie  = $.browser.msie;
var browser_moz = $.browser.mozilla;
var browser_wk  = $.browser.safari;
var browser_op  = $.browser.opera;

$(document).ready(function() {
	/*************************
	** fixing some UI issue **
	*************************/
	if (browser_ie) {
		var div_tab_header   = $('#tab_header');
		var div_tab_header_a = $(div_tab_header).find('a');

		for (m = 0; m < div_tab_header_a.length; m++) $(div_tab_header_a[m]).addClass('ie_only');

		var div_add_util   = $('#content_table_util');
		var div_add_util_a = $(div_add_util).find('a');

		for (m = 0; m < div_add_util_a.length; m++) $(div_add_util_a[m]).addClass('ie_only');
	}
	/*****************************
	** END fixing some UI issue **
	*****************************/		
});

function addNew()
{
	
}

function download()
{
}

function print()
{
}

</script>		
<script language="javascript">
var site_url="<?php echo site_url();?>";

$(document).ready(function(){
	$("#cari").click(function(){
		var field=$("#field").val();
		var cari=$("#pencarian").val();
		var url = site_url + "/admin/cuser/index/0/" + field + "/" + cari;
		window.open(url,"_self");
	});
	
	$("#clear").click(function(){
		var url = site_url + "/admin/cuser/index/0";
		window.open(url,"_self");	
	});
});
</script>
</body>
</html>